<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

    <script>
        window.onload=function fx(){
            for(var i=100;i<=999;i++)
            {
                var a = parseInt(i/100);
                a%=10;
                var b=parseInt(i/10);
                b%=10;
                var c=i%10;
                if(a*a*a+b*b*b+c*c*c===i)
                console.log(i);
            }
        }
    </script>
</body>
</html>